package com.companion.companion.mapper;

import java.util.List;

import com.companion.companion.domain.Carerecord;
import org.apache.ibatis.annotations.Mapper;

/**
 * 护工陪护记录Mapper接口
 * 
 * @author zly
 * @date 2025-05-06
 */
@Mapper

public interface CarerecordMapper 
{
    /**
     * 查询护工陪护记录
     * 
     * @param careRecordId 护工陪护记录主键
     * @return 护工陪护记录
     */
    public Carerecord selectCarerecordByCareRecordId(Long careRecordId);

    /**
     * 查询护工陪护记录列表
     * 
     * @param carerecord 护工陪护记录
     * @return 护工陪护记录集合
     */
    public List<Carerecord> selectCarerecordList(Carerecord carerecord);

    /**
     * 新增护工陪护记录
     * 
     * @param carerecord 护工陪护记录
     * @return 结果
     */
    public int insertCarerecord(Carerecord carerecord);

    /**
     * 修改护工陪护记录
     * 
     * @param carerecord 护工陪护记录
     * @return 结果
     */
    public int updateCarerecord(Carerecord carerecord);

    /**
     * 删除护工陪护记录
     * 
     * @param careRecordId 护工陪护记录主键
     * @return 结果
     */
    public int deleteCarerecordByCareRecordId(Long careRecordId);

    /**
     * 批量删除护工陪护记录
     * 
     * @param careRecordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCarerecordByCareRecordIds(Long[] careRecordIds);
}
